﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPageAdmin.master" AutoEventWireup="true"
    CodeFile="dstin.aspx.cs" Inherits="Admin_dstin" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="mainy">
        <div class="row">
            <div class="col-md-12">
                <div class="awidget">
                    <div class="awidget-head">
                        <h3>
                            Danh sách tin tức</h3>
                    </div>
                    <div class="awidget-body">
                        <div class="form-group">
                            <label class="col-lg-2 control-label" style="width: 100px">
                                Loại tin</label>
                            <div class="col-lg-10">
                                <asp:DropDownList ID="dr_lt" runat="server" class="form-control" Width="200" AutoPostBack=true>
                                </asp:DropDownList>
                            </div>
                        </div>
                        <br />
                        <asp:GridView ID="gr_tin" runat="server" class="table table-hover table-bordered"
                            AutoGenerateColumns="false">
                            <Columns>
                                <asp:TemplateField HeaderText="STT">
                                    <ItemTemplate>
                                        <%# cout++ %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tiêu đê">
                                    <ItemTemplate>
                                        <%# Eval("TieuDe") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Thứ tự">
                                    <ItemTemplate>
                                        <%# Eval("thuTu") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Chức năng">
                                    <ItemTemplate>
                                        <a href='tintuc.aspx?id=<%# Eval("TinId") %>' class="btn btn-xs btn-warning"><i class="icon-pencil">
                                        </i></a>
                                        <asp:LinkButton ID="btn_delete" runat="server" CommandName="del" CommandArgument='<%# Eval("TinId") %>' class="btn btn-xs btn-danger"><i class="icon-remove"></i></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <ul class="pagination pull-right" style="display: none">
                            <li><a href="#">«</a></li>
                            <li><a href="#">1</a></li>
                            <li><a href="#">2</a></li>
                            <li><a href="#">3</a></li>
                            <li><a href="#">4</a></li>
                            <li><a href="#">5</a></li>
                            <li><a href="#">»</a></li>
                        </ul>
                        <div class="clearfix">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
